package com.iceberg;

import org.omg.CORBA.PUBLIC_MEMBER;

public class QuickSort {

    private int[] numbers;
    public int l, r;
    public int curPivot;
    public int curElement;
    public boolean[] fixedPivot;

    public QuickSort(int N, int randomBound){

        numbers = new int[N];
        fixedPivot = new boolean[N];

        for (int i = 0; i < numbers.length; i ++){
            numbers[i] = (int)(Math.random()*randomBound) + 1;
            fixedPivot[i] = false;
        }
    }

    public int N(){
        return numbers.length;
    }

    public int get(int index){
        return numbers[index];
    }

    public void swap(int i, int j){
        int temp = numbers[i];
        numbers[i] = numbers[j];
        numbers[j] = temp;
    }
}
